// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.ast.expr.SQLIntegerExpr_ptr;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLAlterTableSubpartitionAvailablePartitionNum.h"
#include "../../visitor/SQLASTVisitor.h"
#include "../expr/SQLIntegerExpr.h"

SQLIntegerExpr_ptr SQLAlterTableSubpartitionAvailablePartitionNum::getNumber()
{
  return number;
}

void SQLAlterTableSubpartitionAvailablePartitionNum::setNumber(SQLIntegerExpr_ptr x)
{
  if (x != nullptr)
  {
    x->setParent(SharedObject(SQLAlterTableSubpartitionAvailablePartitionNum));
  }
  this->number = x;
}

// @Override
void SQLAlterTableSubpartitionAvailablePartitionNum::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLAlterTableSubpartitionAvailablePartitionNum)))
  {
    acceptChild(visitor, number);
  }
  visitor->endVisit(SharedObject(SQLAlterTableSubpartitionAvailablePartitionNum));
}
